#include <iostream>
#include <fstream>

#include "Transcoding.h"

using namespace std;

void write() {
	ofstream ofile("readme.txt", ios::app);
	for (int i = 0; i < 10; i++) 
	{
		ofile << "中文" << endl;
	}
	ofile << "english" << endl;
	ofile << "123" << endl;
	ofile.close();
}

void read() {
	ifstream ifile("readme.txt");
	string oneline;
	while (ifile.peek() != EOF)
	{
		getline(ifile, oneline);
		cout << Transcoding::UTF8ToGBK(oneline.c_str()) << "\n";
	}
	ifile.close();
}

//int main(int argc, char *argv[])
//{
//	write();
//	read();
//	return 0;
//}